package cn.tt.tuantuanerp.tuantuanerp.search.repository;


import cn.tt.tuantuanerp.tuantuanerp.search.entity.Sku;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * @author tarena
 */
@Repository
public interface SkuRepository extends ElasticsearchRepository<Sku,Long> {
    /**
     * 根据skuname模糊查询
     * @param name sku名字
     * @return 查询结果
     */
    Iterable<Sku>querySkuBySkuNameMatches(String name);
}
